package com.worthtech.billportal.bean;

/**
 * PosDkCustinfoId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class PosDkCustinfoId implements java.io.Serializable {

	// Fields

	private String custTerno;
	private String custCdno;

	// Constructors

	/** default constructor */
	public PosDkCustinfoId() {
	}

	/** full constructor */
	public PosDkCustinfoId(String custTerno, String custCdno) {
		this.custTerno = custTerno;
		this.custCdno = custCdno;
	}

	// Property accessors

	public String getCustTerno() {
		return this.custTerno;
	}

	public void setCustTerno(String custTerno) {
		this.custTerno = custTerno;
	}

	public String getCustCdno() {
		return this.custCdno;
	}

	public void setCustCdno(String custCdno) {
		this.custCdno = custCdno;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PosDkCustinfoId))
			return false;
		PosDkCustinfoId castOther = (PosDkCustinfoId) other;

		return ((this.getCustTerno() == castOther.getCustTerno()) || (this
				.getCustTerno() != null
				&& castOther.getCustTerno() != null && this.getCustTerno()
				.equals(castOther.getCustTerno())))
				&& ((this.getCustCdno() == castOther.getCustCdno()) || (this
						.getCustCdno() != null
						&& castOther.getCustCdno() != null && this
						.getCustCdno().equals(castOther.getCustCdno())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCustTerno() == null ? 0 : this.getCustTerno().hashCode());
		result = 37 * result
				+ (getCustCdno() == null ? 0 : this.getCustCdno().hashCode());
		return result;
	}

}